package wx.event.impl.core;

import wx.event.entity.weixing.WxEventRequest;
import wx.event.impl.text.ProcessText;
import wx.event.utils.MessageUtil;

public class ProcessFactory {
    private WxEventRequest wxEventRequest;
    public ProcessFactory(WxEventRequest _wxEventRequest){
        this.wxEventRequest = _wxEventRequest;
    }
    public String getResult(){
        if(wxEventRequest.getMsgType().equals(MessageUtil.请求消息类型_文本.getType())){
            return new ProcessText(wxEventRequest).processEvent();
        }else return null;

    }
}
